package com.ruoyi.SysWrong.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.SysWrong.mapper.SysWrongMapper;
import com.ruoyi.SysWrong.domain.SysWrong;
import com.ruoyi.SysWrong.service.ISysWrongService;

/**
 * 历史记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-20
 */
@Service
public class SysWrongServiceImpl implements ISysWrongService 
{
    @Autowired
    private SysWrongMapper sysWrongMapper;

    /**
     * 查询历史记录
     * 
     * @param id 历史记录主键
     * @return 历史记录
     */
    @Override
    public SysWrong selectSysWrongById(Long id)
    {
        return sysWrongMapper.selectSysWrongById(id);
    }

    /**
     * 查询历史记录列表
     * 
     * @param sysWrong 历史记录
     * @return 历史记录
     */
    @Override
    public List<SysWrong> selectSysWrongList(SysWrong sysWrong)
    {
        return sysWrongMapper.selectSysWrongList(sysWrong);
    }

    /**
     * 新增历史记录
     * 
     * @param sysWrong 历史记录
     * @return 结果
     */
    @Override
    public int insertSysWrong(SysWrong sysWrong)
    {
        return sysWrongMapper.insertSysWrong(sysWrong);
    }

    /**
     * 修改历史记录
     * 
     * @param sysWrong 历史记录
     * @return 结果
     */
    @Override
    public int updateSysWrong(SysWrong sysWrong)
    {
        return sysWrongMapper.updateSysWrong(sysWrong);
    }

    /**
     * 批量删除历史记录
     * 
     * @param ids 需要删除的历史记录主键
     * @return 结果
     */
    @Override
    public int deleteSysWrongByIds(Long[] ids)
    {
        return sysWrongMapper.deleteSysWrongByIds(ids);
    }

    /**
     * 删除历史记录信息
     * 
     * @param id 历史记录主键
     * @return 结果
     */
    @Override
    public int deleteSysWrongById(Long id)
    {
        return sysWrongMapper.deleteSysWrongById(id);
    }
}
